import {fileURLToPath, URL} from 'node:url'
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// import tailwindcss from "@tailwindcss/vite";

// https://vite.dev/config/
export default defineConfig({
    plugins: [
        vue(),
        vueDevTools(),
        // tailwindcss(),
    ],
    resolve: {
        alias: {
            '@': fileURLToPath(new URL('./src', import.meta.url))
        },
    },
    // css: {
    //     preprocessorOptions: {
    //         scss: {
    //             javascriptEnabled: true,
    //             additionalData: `@use "@/styles/element/Index.scss";`,
    //         },
    //     },
    // },
    server: {
        host: '0.0.0.0',
        port: 80,
    },
    define: {
        'process.env': {},
    },
})
